﻿using Entity.Finance.DTO.IncomeAccountItem;
using System.ComponentModel.DataAnnotations;

namespace Entity.Finance.DTO.IncomeAccount
{
    /// <summary>
    /// 应收对账单模型 - 新增
    /// </summary>
    public class IncomeAccountAddDTO
    {
        /// <summary>
        /// 应收对账单编码
        /// </summary>
        [Required(ErrorMessage = "应收对账单编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 客户 ID
        /// </summary>
        [Required(ErrorMessage = "客户CustomerId不能为空")]
        public string CustomerId { get; set; }

        /// <summary>
        /// 应收对账子单
        /// </summary>
        [Required(ErrorMessage = "应收对账子单Items不能为空")]
        public List<IncomeAccountItemAddDTO> Items { get; set; } = new();
    }
}
